<?php if(!empty($subvo)){
    $v = $subvo;
    $subvo = '';
}
if(!empty($subsubvo)){
    $v = $subsubvo;
    $subsubvo = '';
}
?>
 <?php if(!empty($v['dataname'])){
               $listdata =   $v['content'] = $v['dataname'];
                
        }else{
           $listdata =   $v['content'] = unserialize($v['content']);
        }
         ?> 
<!-- 如果是ajaxlist请求，不输出这部分内容 <?php if(!isset($_GET['ajaxlist']) || is_spider()){?> -->
<div class="viewBox myBox<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>sortID="<?php echo $v['sort'];?>" modulesID="<?php echo $v['id'];?>" title="<?php echo $v['title'];?>" deleteUrl="<?php echo U('/Admin/Modules/delete',array('id'=>$v['id']));?>" settingUrl="<?php echo U('/Admin/Modules/edit',array('id'=>$v['id']));?>" isEdit="0"<?php }?>>
 
  <div class="panel panel-primary">
    <?php include(TMPL_PATH.'Home/TemplateDefault/Public-Moduletitle'.C('TMPL_TEMPLATE_SUFFIX')); ?>
    <div class="panel-body">
       
      <ul id="articleList<?php echo $v['id'];?>" <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="list-group articleList viewBoxCss">
      <!-- 如果是ajaxlist请求，不输出这部分内容 <?php } ?> -->
      
      
        <?php foreach($v['content'] as $key => $p):?>
        <?php if($v['picDisplayCount'] > $key){?>
        <li <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="list-group-item articleItem viewBoxCss"><span <?php if($_SESSION[C('USER_AUTH_KEY')]){?>modulesID="<?php echo $v['id'];?>"<?php }?> class="badge datetime viewBoxCss"><?php echo date('Y-m-d', $p['datetime']);?></span><a href="<?php echo getArtLink($p['id']);?>"><?php echo cut_str($p['title'],$v['listTitleLength'],0);?></a></li>
        <?php }?>
        <?php endforeach; ?>
        
        <!-- 如果是ajaxlist请求，不输出这部分内容 <?php if(!isset($_GET['ajaxlist']) || is_spider()){?> -->
      </ul>
      
      <?php if(empty($v['content'])){?>
          <p class="emptycontent">暂无内容</p>
      <?php }?>
      <?php if(strtolower(GROUP_NAME) != 'admin'){
      if(!empty($listdata)){
      ?>
  
      <script>
	  $(document).ready(function(e) {
        $('#articleList<?php echo $v['id'];?>').ajaxlist();
    });
    
</script>
      <?php }}?>
      <div class="clearfix"></div>
      <form id="articleList<?php echo $v['id'];?>form" action=""><input type="hidden" name="modulesID" value="<?php echo $v['id'];?>">
<input type="hidden" name="ajaxlist" value="1"></form>
<?php if(!empty($v['dataname'])){?>
      <div id="articleList<?php echo $v['id'];?>pages"><?php if($v['display_pages']>0){echo $pages;}?></div>
      <?php }?>
    </div>
  </div>
</div> <!-- 如果是ajaxlist请求，不输出这部分内容 <?php } ?> -->